package com.bsoft.springboot.lab47.server.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author: hdh
 * @Desc: 配置类
 * @create: 2024-02-27 10:56
 **/
@ConfigurationProperties(prefix = "bsoft.server")
public class BsoftServerProperties {
    /**
     * 默认端口号
     */
    private static  final  Integer DEFAULT_PORT=8080;
    /**
     * 端口
     */
    private Integer port =DEFAULT_PORT;

    public static Integer getDefaultPort(){
        return  DEFAULT_PORT;
    }
    public Integer getPort(){
        return  port;
    }

    public BsoftServerProperties setPort(Integer port){
        this.port= port;
        return  this;
    }

}
